﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ElteIk.RoboSoccer.Logger
{
    public class LogItem
    {
        private DateTime dateTime;
        public DateTime DateTime
        {
            get { return dateTime; }
            set { dateTime = value; }
        }

        private string log;
        public string Log
        {
            get { return log; }
            set { log = value; }
        }	

        public LogItem(string log)
        {
            dateTime = DateTime.Now;
            this.log = log;
        }

        public LogItem(DateTime dateTime, string log)
        {
            this.dateTime = dateTime;
            this.log = log;
        }

        public override string ToString()
        {
            return dateTime.ToString() + " : " + log;
        }
    }
}
